package com.shardingSphere.test.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shardingSphere.test.Entity.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderDao  extends BaseMapper<Order> {
    @Insert("INSERT INTO t_order (id,user_id,price) values (#{id},#{userId},#{price})")
    int insert(Order record);

    @Insert("INSERT INTO t_order (user_id,price) values (#{userId},#{price})")
    int insert2(Order record);
}

